import {Component} from '@angular/core';
import {ModalController, NavParams, ViewController} from 'ionic-angular';

import _ from 'lodash';

@Component({
  selector: 'page-marketing-credit-query',
  templateUrl: './query.html'
})
export class MarketingCreditQueryPage {
  moa_page_name: any = "page-marketing-credit-query";
  moa_page_explain: any = "营销平台 - 诚信管理 - 高级查询";

  condition = {
    managerName:"",
    level:""
  };

  constructor(public viewCtrl: ViewController,public parmas:NavParams) {
    console.log(this.parmas);
    this.condition.managerName=this.parmas.get('managerName');
    this.condition.level=this.parmas.get('level');
  }

  cancel() {
    this.viewCtrl.dismiss();
  }


  /**
   * 初始化查询条件
   */
  initCondition() {
  }

  search(){
    this.viewCtrl.dismiss(this.condition);
  }
  clear(){
    this.condition = {
      managerName:"",
      level:""
    }
  }

}


